package org.dylan.web.plugin.omui.model;

public class SimpleTreeModel<T> {
	private String id;
	private String pid;
	private String text;
	private boolean expanded = true;
	private T data;

	public SimpleTreeModel() {

	}

	public SimpleTreeModel(T data) {
		this.data = data;
	}

	public SimpleTreeModel(String id, String text, T data) {
		setId(id);
		setText(text);
		setData(data);
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getPid() {
		return pid;
	}

	public void setPid(String pid) {
		this.pid = pid;
	}

	public String getText() {
		return text;
	}

	public void setText(String text) {
		this.text = text;
	}

	public boolean isExpanded() {
		return expanded;
	}

	public void setExpanded(boolean expanded) {
		this.expanded = expanded;
	}

	public T getData() {
		return data;
	}

	public void setData(T data) {
		this.data = data;
	}

}
